<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>mxGraphModel</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.51 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="mxGraphModel"></a>mxGraphModel</h1><div class=CBody><p>Cells are the elements of the graph model.&nbsp; They represent the state of the groups, vertices and edges in a graph.</p><p>Fires a graphModelChanged event after each group of changes.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#mxGraphModel" >mxGraphModel</a></td><td class=SDescription>Cells are the elements of the graph model. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxGraphModel.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.root" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">root</a></td><td class=SDescription>Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. </td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxGraphModel.cells" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">cells</a></td><td class=SDescription>Maps from Ids to cells.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.maintainEdgeParent" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">maintainEdgeParent</a></td><td class=SDescription>Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. </td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxGraphModel.createIds" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">createIds</a></td><td class=SDescription>Specifies if the model should automatically create Ids for new cells. </td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.nextId" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">nextId</a></td><td class=SDescription>Specifies the next Id to be created. </td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxGraphModel.updateLevel" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">updateLevel</a></td><td class=SDescription>Counter for the depth of nested transactions. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxGraphModel.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.mxGraphModel" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">mxGraphModel</a></td><td class=SDescription>Constructs a new graph model using the specified root cell.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.clear" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">clear</a></td><td class=SDescription>Sets a new root using <a href="#mxGraphModel.createRoot" class=LFunction id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">createRoot</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.createRoot" id=link10 onMouseOver="ShowTip(event, 'tt9', 'link10')" onMouseOut="HideTip('tt9')">createRoot</a></td><td class=SDescription>Creates a new root cell with a default layer (child 0).</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getCells" id=link11 onMouseOver="ShowTip(event, 'tt10', 'link11')" onMouseOut="HideTip('tt10')">getCells</a></td><td class=SDescription>Returns the internal lookup table that is used to map from Ids to cells.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setRoot" >setRoot</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getRoot" id=link12 onMouseOver="ShowTip(event, 'tt11', 'link12')" onMouseOut="HideTip('tt11')">getRoot</a></td><td class=SDescription>Returns the root of the model.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setRoot" id=link13 onMouseOver="ShowTip(event, 'tt12', 'link13')" onMouseOut="HideTip('tt12')">setRoot</a></td><td class=SDescription>Sets the <a href="#mxGraphModel.root" class=LVariable id=link14 onMouseOver="ShowTip(event, 'tt1', 'link14')" onMouseOut="HideTip('tt1')">root</a> of the model using &lt;mxRootChange&gt; and adds the change to the current transaction. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.cloneCell" id=link15 onMouseOver="ShowTip(event, 'tt13', 'link15')" onMouseOut="HideTip('tt13')">cloneCell</a></td><td class=SDescription>Returns a deep clone of the given <a href="mxCell-php.html#mxCell" class=LClass id=link16 onMouseOver="ShowTip(event, 'tt14', 'link16')" onMouseOut="HideTip('tt14')">mxCell</a> (including the children) which is created using <a href="#mxGraphModel.cloneCells" class=LFunction id=link17 onMouseOver="ShowTip(event, 'tt15', 'link17')" onMouseOut="HideTip('tt15')">cloneCells</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.cloneCells" id=link18 onMouseOver="ShowTip(event, 'tt15', 'link18')" onMouseOut="HideTip('tt15')">cloneCells</a></td><td class=SDescription>Returns an array of clones for the given array of <a href="mxCell-php.html#mxCell" class=LClass id=link19 onMouseOver="ShowTip(event, 'tt14', 'link19')" onMouseOut="HideTip('tt14')">mxCells</a>. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.cloneCellImpl" id=link20 onMouseOver="ShowTip(event, 'tt16', 'link20')" onMouseOut="HideTip('tt16')">cloneCellImpl</a></td><td class=SDescription>Inner helper method for cloning cells recursively.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.cellCloned" id=link21 onMouseOver="ShowTip(event, 'tt17', 'link21')" onMouseOut="HideTip('tt17')">cellCloned</a></td><td class=SDescription>Hook for cloning the cell. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.restoreClone" id=link22 onMouseOver="ShowTip(event, 'tt18', 'link22')" onMouseOut="HideTip('tt18')">restoreClone</a></td><td class=SDescription>Inner helper method for restoring the connections in a network of cloned cells.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.isAncestor" id=link23 onMouseOver="ShowTip(event, 'tt19', 'link23')" onMouseOut="HideTip('tt19')">isAncestor</a></td><td class=SDescription>Returns true if the given parent is an ancestor of the given child.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.contains" id=link24 onMouseOver="ShowTip(event, 'tt20', 'link24')" onMouseOut="HideTip('tt20')">contains</a></td><td class=SDescription>Returns true if the model contains the given <a href="mxCell-php.html#mxCell" class=LClass id=link25 onMouseOver="ShowTip(event, 'tt14', 'link25')" onMouseOut="HideTip('tt14')">mxCell</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.getParent" id=link26 onMouseOver="ShowTip(event, 'tt21', 'link26')" onMouseOut="HideTip('tt21')">getParent</a></td><td class=SDescription>Returns the parent of the given cell.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.add" id=link27 onMouseOver="ShowTip(event, 'tt22', 'link27')" onMouseOut="HideTip('tt22')">add</a></td><td class=SDescription>Adds the specified child to the parent at the given index using &lt;mxChildChange&gt; and adds the change to the current transaction. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.cellAdded" id=link28 onMouseOver="ShowTip(event, 'tt23', 'link28')" onMouseOut="HideTip('tt23')">cellAdded</a></td><td class=SDescription>Inner callback to update <a href="#mxGraphModel.cells" class=LVariable id=link29 onMouseOver="ShowTip(event, 'tt2', 'link29')" onMouseOut="HideTip('tt2')">cells</a> when a cell has been added. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.createId" id=link30 onMouseOver="ShowTip(event, 'tt24', 'link30')" onMouseOut="HideTip('tt24')">createId</a></td><td class=SDescription>Hook method to create an Id for the specified cell. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.updateEdgeParents" id=link31 onMouseOver="ShowTip(event, 'tt25', 'link31')" onMouseOut="HideTip('tt25')">updateEdgeParents</a></td><td class=SDescription>Updates the parent for all edges that are connected to cell or one of its descendants using <a href="#mxGraphModel.updateEdgeParent" class=LFunction id=link32 onMouseOver="ShowTip(event, 'tt26', 'link32')" onMouseOut="HideTip('tt26')">updateEdgeParent</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.updateEdgeParent" id=link33 onMouseOver="ShowTip(event, 'tt26', 'link33')" onMouseOut="HideTip('tt26')">updateEdgeParent</a></td><td class=SDescription>Inner callback to update the parent of the specified <a href="mxCell-php.html#mxCell" class=LClass id=link34 onMouseOver="ShowTip(event, 'tt14', 'link34')" onMouseOut="HideTip('tt14')">mxCell</a> to the nearest-common-ancestor of its two terminals.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.getOrigin" id=link35 onMouseOver="ShowTip(event, 'tt27', 'link35')" onMouseOut="HideTip('tt27')">getOrigin</a></td><td class=SDescription>Returns the absolute, cummulated origin for the children inside the given parent as an <a href="../util/mxPoint-php.html#mxPoint" class=LClass id=link36 onMouseOver="ShowTip(event, 'tt28', 'link36')" onMouseOut="HideTip('tt28')">mxPoint</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getNearestCommonAncestor" id=link37 onMouseOver="ShowTip(event, 'tt29', 'link37')" onMouseOut="HideTip('tt29')">getNearestCommonAncestor</a></td><td class=SDescription>Returns the nearest common ancestor for the specified cells.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.remove" id=link38 onMouseOver="ShowTip(event, 'tt30', 'link38')" onMouseOut="HideTip('tt30')">remove</a></td><td class=SDescription>Removes the specified cell from the model using &lt;mxChildChange&gt; and adds the change to the current transaction. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.cellRemoved" id=link39 onMouseOver="ShowTip(event, 'tt31', 'link39')" onMouseOut="HideTip('tt31')">cellRemoved</a></td><td class=SDescription>Inner callback to update <a href="#mxGraphModel.cells" class=LVariable id=link40 onMouseOver="ShowTip(event, 'tt2', 'link40')" onMouseOut="HideTip('tt2')">cells</a> when a cell has been removed.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.getChildCount" id=link41 onMouseOver="ShowTip(event, 'tt32', 'link41')" onMouseOut="HideTip('tt32')">getChildCount</a></td><td class=SDescription>Returns the number of children in the given cell.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getChildAt" id=link42 onMouseOver="ShowTip(event, 'tt33', 'link42')" onMouseOut="HideTip('tt33')">getChildAt</a></td><td class=SDescription>Returns the child of the given <a href="mxCell-php.html#mxCell" class=LClass id=link43 onMouseOver="ShowTip(event, 'tt14', 'link43')" onMouseOut="HideTip('tt14')">mxCell</a> at the given index.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.getTerminal" id=link44 onMouseOver="ShowTip(event, 'tt34', 'link44')" onMouseOut="HideTip('tt34')">getTerminal</a></td><td class=SDescription>Returns the source or target <a href="mxCell-php.html#mxCell" class=LClass id=link45 onMouseOver="ShowTip(event, 'tt14', 'link45')" onMouseOut="HideTip('tt14')">mxCell</a> of the given edge depending on the value of the boolean parameter.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.setTerminal" id=link46 onMouseOver="ShowTip(event, 'tt35', 'link46')" onMouseOut="HideTip('tt35')">setTerminal</a></td><td class=SDescription>Sets the source or target terminal of the given <a href="mxCell-php.html#mxCell" class=LClass id=link47 onMouseOver="ShowTip(event, 'tt14', 'link47')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxTerminalChange&gt; and adds the change to the current transaction. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setTerminals" id=link48 onMouseOver="ShowTip(event, 'tt36', 'link48')" onMouseOut="HideTip('tt36')">setTerminals</a></td><td class=SDescription>Sets the source and target <a href="mxCell-php.html#mxCell" class=LClass id=link49 onMouseOver="ShowTip(event, 'tt14', 'link49')" onMouseOut="HideTip('tt14')">mxCell</a> of the given <a href="mxCell-php.html#mxCell" class=LClass id=link50 onMouseOver="ShowTip(event, 'tt14', 'link50')" onMouseOut="HideTip('tt14')">mxCell</a> in a single transaction using <a href="#mxGraphModel.setTerminal" class=LFunction id=link51 onMouseOver="ShowTip(event, 'tt35', 'link51')" onMouseOut="HideTip('tt35')">setTerminal</a> for each end of the edge.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getEdgeCount" id=link52 onMouseOver="ShowTip(event, 'tt37', 'link52')" onMouseOut="HideTip('tt37')">getEdgeCount</a></td><td class=SDescription>Returns the number of distinct edges connected to the given cell.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.getEdgeAt" id=link53 onMouseOver="ShowTip(event, 'tt38', 'link53')" onMouseOut="HideTip('tt38')">getEdgeAt</a></td><td class=SDescription>Returns the edge of cell at the given index.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getEdges" id=link54 onMouseOver="ShowTip(event, 'tt39', 'link54')" onMouseOut="HideTip('tt39')">getEdges</a></td><td class=SDescription>Returns all distinct edges connected to this cell as an array of <a href="mxCell-php.html#mxCell" class=LClass id=link55 onMouseOver="ShowTip(event, 'tt14', 'link55')" onMouseOut="HideTip('tt14')">mxCells</a>. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.isVertex" id=link56 onMouseOver="ShowTip(event, 'tt40', 'link56')" onMouseOut="HideTip('tt40')">isVertex</a></td><td class=SDescription>Returns true if the given cell is a vertex.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.isEdge" id=link57 onMouseOver="ShowTip(event, 'tt41', 'link57')" onMouseOut="HideTip('tt41')">isEdge</a></td><td class=SDescription>Returns true if the given cell is an edge.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.isConnectable" id=link58 onMouseOver="ShowTip(event, 'tt42', 'link58')" onMouseOut="HideTip('tt42')">isConnectable</a></td><td class=SDescription>Returns true if the given <a href="mxCell-php.html#mxCell" class=LClass id=link59 onMouseOver="ShowTip(event, 'tt14', 'link59')" onMouseOut="HideTip('tt14')">mxCell</a> is connectable. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getValue" id=link60 onMouseOver="ShowTip(event, 'tt43', 'link60')" onMouseOut="HideTip('tt43')">getValue</a></td><td class=SDescription>Returns the user object of the given <a href="mxCell-php.html#mxCell" class=LClass id=link61 onMouseOver="ShowTip(event, 'tt14', 'link61')" onMouseOut="HideTip('tt14')">mxCell</a> using <a href="mxCell-php.html#mxCell.getValue" class=LFunction id=link62 onMouseOver="ShowTip(event, 'tt44', 'link62')" onMouseOut="HideTip('tt44')">mxCell.getValue</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setValue" id=link63 onMouseOver="ShowTip(event, 'tt45', 'link63')" onMouseOut="HideTip('tt45')">setValue</a></td><td class=SDescription>Sets the user object of then given <a href="mxCell-php.html#mxCell" class=LClass id=link64 onMouseOver="ShowTip(event, 'tt14', 'link64')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxValueChange&gt; and adds the change to the current transaction.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getGeometry" id=link65 onMouseOver="ShowTip(event, 'tt46', 'link65')" onMouseOut="HideTip('tt46')">getGeometry</a></td><td class=SDescription>Returns the <a href="mxGeometry-php.html#mxGeometry" class=LClass id=link66 onMouseOver="ShowTip(event, 'tt47', 'link66')" onMouseOut="HideTip('tt47')">mxGeometry</a> of the given <a href="mxCell-php.html#mxCell" class=LClass id=link67 onMouseOver="ShowTip(event, 'tt14', 'link67')" onMouseOut="HideTip('tt14')">mxCell</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setGeometry" id=link68 onMouseOver="ShowTip(event, 'tt48', 'link68')" onMouseOut="HideTip('tt48')">setGeometry</a></td><td class=SDescription>Sets the <a href="mxGeometry-php.html#mxGeometry" class=LClass id=link69 onMouseOver="ShowTip(event, 'tt47', 'link69')" onMouseOut="HideTip('tt47')">mxGeometry</a> of the given <a href="mxCell-php.html#mxCell" class=LClass id=link70 onMouseOver="ShowTip(event, 'tt14', 'link70')" onMouseOut="HideTip('tt14')">mxCell</a>. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getStyle" id=link71 onMouseOver="ShowTip(event, 'tt49', 'link71')" onMouseOut="HideTip('tt49')">getStyle</a></td><td class=SDescription>Returns the style of the given <a href="mxCell-php.html#mxCell" class=LClass id=link72 onMouseOver="ShowTip(event, 'tt14', 'link72')" onMouseOut="HideTip('tt14')">mxCell</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setStyle" id=link73 onMouseOver="ShowTip(event, 'tt50', 'link73')" onMouseOut="HideTip('tt50')">setStyle</a></td><td class=SDescription>Sets the style of the given <a href="mxCell-php.html#mxCell" class=LClass id=link74 onMouseOver="ShowTip(event, 'tt14', 'link74')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxStyleChange&gt; and adds the change to the current transaction.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.isCollapsed" id=link75 onMouseOver="ShowTip(event, 'tt51', 'link75')" onMouseOut="HideTip('tt51')">isCollapsed</a></td><td class=SDescription>Returns true if the given <a href="mxCell-php.html#mxCell" class=LClass id=link76 onMouseOver="ShowTip(event, 'tt14', 'link76')" onMouseOut="HideTip('tt14')">mxCell</a> is collapsed.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setCollapsed" id=link77 onMouseOver="ShowTip(event, 'tt52', 'link77')" onMouseOut="HideTip('tt52')">setCollapsed</a></td><td class=SDescription>Sets the collapsed state of the given <a href="mxCell-php.html#mxCell" class=LClass id=link78 onMouseOver="ShowTip(event, 'tt14', 'link78')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxCollapseChange&gt; and adds the change to the current transaction.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.isVisible" id=link79 onMouseOver="ShowTip(event, 'tt53', 'link79')" onMouseOut="HideTip('tt53')">isVisible</a></td><td class=SDescription>Returns true if the given <a href="mxCell-php.html#mxCell" class=LClass id=link80 onMouseOver="ShowTip(event, 'tt14', 'link80')" onMouseOut="HideTip('tt14')">mxCell</a> is visible.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.setVisible" id=link81 onMouseOver="ShowTip(event, 'tt54', 'link81')" onMouseOut="HideTip('tt54')">setVisible</a></td><td class=SDescription>Sets the visible state of the given <a href="mxCell-php.html#mxCell" class=LClass id=link82 onMouseOver="ShowTip(event, 'tt14', 'link82')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxVisibleChange&gt; and adds the change to the current transaction.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.mergeChildren" id=link83 onMouseOver="ShowTip(event, 'tt55', 'link83')" onMouseOut="HideTip('tt55')">mergeChildren</a></td><td class=SDescription>Merges the children of the given cell into the given target cell inside this model. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.mergeChildrenImpl" id=link84 onMouseOver="ShowTip(event, 'tt56', 'link84')" onMouseOut="HideTip('tt56')">mergeChildrenImpl</a></td><td class=SDescription>Clones the children of the source cell into the given target cell in this model and adds an entry to the mapping that maps from the source cell to the target cell with the same id or the clone of the source cell that was inserted into this model.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.beginUpdate" id=link85 onMouseOver="ShowTip(event, 'tt57', 'link85')" onMouseOut="HideTip('tt57')">beginUpdate</a></td><td class=SDescription>Increments the <a href="#mxGraphModel.updateLevel" class=LVariable id=link86 onMouseOver="ShowTip(event, 'tt6', 'link86')" onMouseOut="HideTip('tt6')">updateLevel</a> by one. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphModel.endUpdate" id=link87 onMouseOver="ShowTip(event, 'tt58', 'link87')" onMouseOut="HideTip('tt58')">endUpdate</a></td><td class=SDescription>Decrements the <a href="#mxGraphModel.updateLevel" class=LVariable id=link88 onMouseOver="ShowTip(event, 'tt6', 'link88')" onMouseOut="HideTip('tt6')">updateLevel</a> by one and fires a notification event if the <a href="#mxGraphModel.updateLevel" class=LVariable id=link89 onMouseOver="ShowTip(event, 'tt6', 'link89')" onMouseOut="HideTip('tt6')">updateLevel</a> reaches 0. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGraphModel.getDirectedEdgeCount" id=link90 onMouseOver="ShowTip(event, 'tt59', 'link90')" onMouseOut="HideTip('tt59')">getDirectedEdgeCount</a></td><td class=SDescription>Returns the number of incoming or outgoing edges, ignoring the given edge.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.Variables"></a>Variables</h3></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.root"></a>root</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $root</td></tr></table></blockquote><p>Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells.&nbsp; That is, the actual elements of the diagram are supposed to live in the third generation of cells and below.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.cells"></a>cells</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $cells</td></tr></table></blockquote><p>Maps from Ids to cells.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.maintainEdgeParent"></a>maintainEdgeParent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $maintainEdgeParent</td></tr></table></blockquote><p>Specifies if edges should automatically be moved into the nearest common ancestor of their terminals.&nbsp; Default is true.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.createIds"></a>createIds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $createIds</td></tr></table></blockquote><p>Specifies if the model should automatically create Ids for new cells.&nbsp; Default is true.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.nextId"></a>nextId</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $nextId</td></tr></table></blockquote><p>Specifies the next Id to be created.&nbsp; Default is 0.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.updateLevel"></a>updateLevel</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $updateLevel</td></tr></table></blockquote><p>Counter for the depth of nested transactions.&nbsp; Each call to <a href="#mxGraphModel.beginUpdate" class=LFunction id=link91 onMouseOver="ShowTip(event, 'tt57', 'link91')" onMouseOut="HideTip('tt57')">beginUpdate</a> will increment this number and each call to <a href="#mxGraphModel.endUpdate" class=LFunction id=link92 onMouseOver="ShowTip(event, 'tt58', 'link92')" onMouseOut="HideTip('tt58')">endUpdate</a> will decrement it.&nbsp; When the counter reaches 0, the transaction is closed and the respective events are fired.&nbsp; Initial value is 0.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.mxGraphModel"></a>mxGraphModel</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function mxGraphModel(</td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new graph model using the specified root cell.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.clear"></a>clear</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function clear()</td></tr></table></blockquote><p>Sets a new root using <a href="#mxGraphModel.createRoot" class=LFunction id=link93 onMouseOver="ShowTip(event, 'tt9', 'link93')" onMouseOut="HideTip('tt9')">createRoot</a>.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.createRoot"></a>createRoot</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function createRoot()</td></tr></table></blockquote><p>Creates a new root cell with a default layer (child 0).</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getCells"></a>getCells</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function getCells()</td></tr></table></blockquote><p>Returns the internal lookup table that is used to map from Ids to cells.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setRoot"></a>setRoot</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getRoot"></a>getRoot</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function getRoot()</td></tr></table></blockquote><p>Returns the root of the model.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setRoot"></a>setRoot</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setRoot(</td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the <a href="#mxGraphModel.root" class=LVariable id=link94 onMouseOver="ShowTip(event, 'tt1', 'link94')" onMouseOut="HideTip('tt1')">root</a> of the model using &lt;mxRootChange&gt; and adds the change to the current transaction.&nbsp; This resets all datastructures in the model and is the preferred way of clearing an existing model.&nbsp; Returns the new root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>root</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link95 onMouseOver="ShowTip(event, 'tt14', 'link95')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new root.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.cloneCell"></a>cloneCell</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cloneCell(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns a deep clone of the given <a href="mxCell-php.html#mxCell" class=LClass id=link96 onMouseOver="ShowTip(event, 'tt14', 'link96')" onMouseOut="HideTip('tt14')">mxCell</a> (including the children) which is created using <a href="#mxGraphModel.cloneCells" class=LFunction id=link97 onMouseOver="ShowTip(event, 'tt15', 'link97')" onMouseOut="HideTip('tt15')">cloneCells</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link98 onMouseOver="ShowTip(event, 'tt14', 'link98')" onMouseOut="HideTip('tt14')">mxCell</a> to be cloned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.cloneCells"></a>cloneCells</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cloneCells(</td><td class="PParameter  prettyprint " nowrap>$cells,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$includeChildren</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%>true</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an array of clones for the given array of <a href="mxCell-php.html#mxCell" class=LClass id=link99 onMouseOver="ShowTip(event, 'tt14', 'link99')" onMouseOut="HideTip('tt14')">mxCells</a>.&nbsp; Depending on the value of includeChildren, a deep clone is created for each cell.&nbsp; Connections are restored based if the corresponding cell is contained in the passed in array.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cells</td><td class=CDLDescription>Array of <a href="mxCell-php.html#mxCell" class=LClass id=link100 onMouseOver="ShowTip(event, 'tt14', 'link100')" onMouseOut="HideTip('tt14')">mxCell</a> to be cloned.</td></tr><tr><td class=CDLEntry>includeChildren</td><td class=CDLDescription>Boolean indicating if the cells should be cloned with all descendants.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.cloneCellImpl"></a>cloneCellImpl</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cloneCellImpl(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$mapping,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$includeChildren</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner helper method for cloning cells recursively.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.cellCloned"></a>cellCloned</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cellCloned(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Hook for cloning the cell.&nbsp; This returns cell-&gt;copy() or any possible exceptions.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.restoreClone"></a>restoreClone</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function restoreClone(</td><td class="PParameter  prettyprint " nowrap>$clne,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$mapping</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner helper method for restoring the connections in a network of cloned cells.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.isAncestor"></a>isAncestor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isAncestor(</td><td class="PParameter  prettyprint " nowrap>$parent,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$child</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given parent is an ancestor of the given child.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>parent</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link101 onMouseOver="ShowTip(event, 'tt14', 'link101')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the parent.</td></tr><tr><td class=CDLEntry>child</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link102 onMouseOver="ShowTip(event, 'tt14', 'link102')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the child.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.contains"></a>contains</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function contains(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the model contains the given <a href="mxCell-php.html#mxCell" class=LClass id=link103 onMouseOver="ShowTip(event, 'tt14', 'link103')" onMouseOut="HideTip('tt14')">mxCell</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link104 onMouseOver="ShowTip(event, 'tt14', 'link104')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getParent"></a>getParent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getParent(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the parent of the given cell.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link105 onMouseOver="ShowTip(event, 'tt14', 'link105')" onMouseOut="HideTip('tt14')">mxCell</a> whose parent should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.add"></a>add</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function add(</td><td class="PParameter  prettyprint " nowrap>$parent,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$child,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$index</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the specified child to the parent at the given index using &lt;mxChildChange&gt; and adds the change to the current transaction.&nbsp; If no index is specified then the child is appended to the parent&rsquo;s array of children.&nbsp; Returns the inserted child.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>parent</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link106 onMouseOver="ShowTip(event, 'tt14', 'link106')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the parent to contain the child.</td></tr><tr><td class=CDLEntry>child</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link107 onMouseOver="ShowTip(event, 'tt14', 'link107')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the child to be inserted.</td></tr><tr><td class=CDLEntry>index</td><td class=CDLDescription>Optional integer that specifies the index of the child.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.cellAdded"></a>cellAdded</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cellAdded(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner callback to update <a href="#mxGraphModel.cells" class=LVariable id=link108 onMouseOver="ShowTip(event, 'tt2', 'link108')" onMouseOut="HideTip('tt2')">cells</a> when a cell has been added.&nbsp; This implementation resolves collisions by creating new Ids.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link109 onMouseOver="ShowTip(event, 'tt14', 'link109')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell that has been added.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.createId"></a>createId</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function createId(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Hook method to create an Id for the specified cell.&nbsp; This implementation increments <a href="#mxGraphModel.nextId" class=LVariable id=link110 onMouseOver="ShowTip(event, 'tt5', 'link110')" onMouseOut="HideTip('tt5')">nextId</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link111 onMouseOver="ShowTip(event, 'tt14', 'link111')" onMouseOut="HideTip('tt14')">mxCell</a> to create the Id for.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.updateEdgeParents"></a>updateEdgeParents</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function updateEdgeParents(</td><td class="PParameter  prettyprint " nowrap>$cell,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the parent for all edges that are connected to cell or one of its descendants using <a href="#mxGraphModel.updateEdgeParent" class=LFunction id=link112 onMouseOver="ShowTip(event, 'tt26', 'link112')" onMouseOut="HideTip('tt26')">updateEdgeParent</a>.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.updateEdgeParent"></a>updateEdgeParent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function updateEdgeParent(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner callback to update the parent of the specified <a href="mxCell-php.html#mxCell" class=LClass id=link113 onMouseOver="ShowTip(event, 'tt14', 'link113')" onMouseOut="HideTip('tt14')">mxCell</a> to the nearest-common-ancestor of its two terminals.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link114 onMouseOver="ShowTip(event, 'tt14', 'link114')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><td class=CDLEntry>root</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link115 onMouseOver="ShowTip(event, 'tt14', 'link115')" onMouseOut="HideTip('tt14')">mxCell</a> that represents the current root of the model.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getOrigin"></a>getOrigin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getOrigin(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the absolute, cummulated origin for the children inside the given parent as an <a href="../util/mxPoint-php.html#mxPoint" class=LClass id=link116 onMouseOver="ShowTip(event, 'tt28', 'link116')" onMouseOut="HideTip('tt28')">mxPoint</a>.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getNearestCommonAncestor"></a>getNearestCommonAncestor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getNearestCommonAncestor(</td><td class="PParameter  prettyprint " nowrap>$cell1,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cell2</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the nearest common ancestor for the specified cells.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell1</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link117 onMouseOver="ShowTip(event, 'tt14', 'link117')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the first cell in the tree.</td></tr><tr><td class=CDLEntry>cell2</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link118 onMouseOver="ShowTip(event, 'tt14', 'link118')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the second cell in the tree.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.remove"></a>remove</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function remove(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes the specified cell from the model using &lt;mxChildChange&gt; and adds the change to the current transaction.&nbsp; This operation will remove the cell and all of its children from the model.&nbsp; Returns the removed cell.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link119 onMouseOver="ShowTip(event, 'tt14', 'link119')" onMouseOut="HideTip('tt14')">mxCell</a> that should be removed.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.cellRemoved"></a>cellRemoved</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cellRemoved(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner callback to update <a href="#mxGraphModel.cells" class=LVariable id=link120 onMouseOver="ShowTip(event, 'tt2', 'link120')" onMouseOut="HideTip('tt2')">cells</a> when a cell has been removed.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link121 onMouseOver="ShowTip(event, 'tt14', 'link121')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell that has been removed.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getChildCount"></a>getChildCount</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getChildCount(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of children in the given cell.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link122 onMouseOver="ShowTip(event, 'tt14', 'link122')" onMouseOut="HideTip('tt14')">mxCell</a> whose number of children should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getChildAt"></a>getChildAt</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getChildAt(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$index</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the child of the given <a href="mxCell-php.html#mxCell" class=LClass id=link123 onMouseOver="ShowTip(event, 'tt14', 'link123')" onMouseOut="HideTip('tt14')">mxCell</a> at the given index.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link124 onMouseOver="ShowTip(event, 'tt14', 'link124')" onMouseOut="HideTip('tt14')">mxCell</a> that represents the parent.</td></tr><tr><td class=CDLEntry>index</td><td class=CDLDescription>Integer that specifies the index of the child to be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getTerminal"></a>getTerminal</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getTerminal(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cource</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the source or target <a href="mxCell-php.html#mxCell" class=LClass id=link125 onMouseOver="ShowTip(event, 'tt14', 'link125')" onMouseOut="HideTip('tt14')">mxCell</a> of the given edge depending on the value of the boolean parameter.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link126 onMouseOver="ShowTip(event, 'tt14', 'link126')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><td class=CDLEntry>cource</td><td class=CDLDescription>Boolean indicating which end of the edge should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setTerminal"></a>setTerminal</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setTerminal(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$terminal,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$source</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the source or target terminal of the given <a href="mxCell-php.html#mxCell" class=LClass id=link127 onMouseOver="ShowTip(event, 'tt14', 'link127')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxTerminalChange&gt; and adds the change to the current transaction.&nbsp; This implementation updates the parent of the edge using <a href="#mxGraphModel.updateEdgeParent" class=LFunction id=link128 onMouseOver="ShowTip(event, 'tt26', 'link128')" onMouseOut="HideTip('tt26')">updateEdgeParent</a> if required.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link129 onMouseOver="ShowTip(event, 'tt14', 'link129')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><td class=CDLEntry>terminal</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link130 onMouseOver="ShowTip(event, 'tt14', 'link130')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new terminal.</td></tr><tr><td class=CDLEntry>isSource</td><td class=CDLDescription>Boolean indicating if the terminal is the new source or target terminal of the edge.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setTerminals"></a>setTerminals</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setTerminals(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$source,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$target</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the source and target <a href="mxCell-php.html#mxCell" class=LClass id=link131 onMouseOver="ShowTip(event, 'tt14', 'link131')" onMouseOut="HideTip('tt14')">mxCell</a> of the given <a href="mxCell-php.html#mxCell" class=LClass id=link132 onMouseOver="ShowTip(event, 'tt14', 'link132')" onMouseOut="HideTip('tt14')">mxCell</a> in a single transaction using <a href="#mxGraphModel.setTerminal" class=LFunction id=link133 onMouseOver="ShowTip(event, 'tt35', 'link133')" onMouseOut="HideTip('tt35')">setTerminal</a> for each end of the edge.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link134 onMouseOver="ShowTip(event, 'tt14', 'link134')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link135 onMouseOver="ShowTip(event, 'tt14', 'link135')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new source terminal.</td></tr><tr><td class=CDLEntry>target</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link136 onMouseOver="ShowTip(event, 'tt14', 'link136')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new target terminal.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getEdgeCount"></a>getEdgeCount</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getEdgeCount(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of distinct edges connected to the given cell.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link137 onMouseOver="ShowTip(event, 'tt14', 'link137')" onMouseOut="HideTip('tt14')">mxCell</a> that represents the vertex.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getEdgeAt"></a>getEdgeAt</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getEdgeAt(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$index</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the edge of cell at the given index.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link138 onMouseOver="ShowTip(event, 'tt14', 'link138')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the vertex.</td></tr><tr><td class=CDLEntry>index</td><td class=CDLDescription>Integer that specifies the index of the edge to return.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getEdges"></a>getEdges</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getEdges(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns all distinct edges connected to this cell as an array of <a href="mxCell-php.html#mxCell" class=LClass id=link139 onMouseOver="ShowTip(event, 'tt14', 'link139')" onMouseOut="HideTip('tt14')">mxCells</a>.&nbsp; The return value should be only be read.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link140 onMouseOver="ShowTip(event, 'tt14', 'link140')" onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.isVertex"></a>isVertex</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isVertex(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given cell is a vertex.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link141 onMouseOver="ShowTip(event, 'tt14', 'link141')" onMouseOut="HideTip('tt14')">mxCell</a> that represents the possible vertex.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.isEdge"></a>isEdge</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isEdge(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given cell is an edge.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link142 onMouseOver="ShowTip(event, 'tt14', 'link142')" onMouseOut="HideTip('tt14')">mxCell</a> that represents the possible edge.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.isConnectable"></a>isConnectable</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isConnectable(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <a href="mxCell-php.html#mxCell" class=LClass id=link143 onMouseOver="ShowTip(event, 'tt14', 'link143')" onMouseOut="HideTip('tt14')">mxCell</a> is connectable.&nbsp; If &lt;edgesConnectable&gt; is false, then this function returns false for all edges else it returns the return value of <a href="mxCell-php.html#mxCell.isConnectable" class=LFunction id=link144 onMouseOver="ShowTip(event, 'tt60', 'link144')" onMouseOut="HideTip('tt60')">mxCell.isConnectable</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link145 onMouseOver="ShowTip(event, 'tt14', 'link145')" onMouseOut="HideTip('tt14')">mxCell</a> whose connectable state should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getValue"></a>getValue</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getValue(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the user object of the given <a href="mxCell-php.html#mxCell" class=LClass id=link146 onMouseOver="ShowTip(event, 'tt14', 'link146')" onMouseOut="HideTip('tt14')">mxCell</a> using <a href="mxCell-php.html#mxCell.getValue" class=LFunction id=link147 onMouseOver="ShowTip(event, 'tt44', 'link147')" onMouseOut="HideTip('tt44')">mxCell.getValue</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link148 onMouseOver="ShowTip(event, 'tt14', 'link148')" onMouseOut="HideTip('tt14')">mxCell</a> whose user object should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setValue"></a>setValue</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setValue(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$value</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the user object of then given <a href="mxCell-php.html#mxCell" class=LClass id=link149 onMouseOver="ShowTip(event, 'tt14', 'link149')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxValueChange&gt; and adds the change to the current transaction.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link150 onMouseOver="ShowTip(event, 'tt14', 'link150')" onMouseOut="HideTip('tt14')">mxCell</a> whose user object should be changed.</td></tr><tr><td class=CDLEntry>value</td><td class=CDLDescription>Object that defines the new user object.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getGeometry"></a>getGeometry</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getGeometry(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <a href="mxGeometry-php.html#mxGeometry" class=LClass id=link151 onMouseOver="ShowTip(event, 'tt47', 'link151')" onMouseOut="HideTip('tt47')">mxGeometry</a> of the given <a href="mxCell-php.html#mxCell" class=LClass id=link152 onMouseOver="ShowTip(event, 'tt14', 'link152')" onMouseOut="HideTip('tt14')">mxCell</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link153 onMouseOver="ShowTip(event, 'tt14', 'link153')" onMouseOut="HideTip('tt14')">mxCell</a> whose geometry should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setGeometry"></a>setGeometry</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setGeometry(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$geometry</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the <a href="mxGeometry-php.html#mxGeometry" class=LClass id=link154 onMouseOver="ShowTip(event, 'tt47', 'link154')" onMouseOut="HideTip('tt47')">mxGeometry</a> of the given <a href="mxCell-php.html#mxCell" class=LClass id=link155 onMouseOver="ShowTip(event, 'tt14', 'link155')" onMouseOut="HideTip('tt14')">mxCell</a>.&nbsp; The actual update of the cell is carried out in &lt;geometryForCellChanged&gt;.&nbsp; The &lt;mxGeometryChange&gt; action is used to encapsulate the change.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link156 onMouseOver="ShowTip(event, 'tt14', 'link156')" onMouseOut="HideTip('tt14')">mxCell</a> whose geometry should be changed.</td></tr><tr><td class=CDLEntry>geometry</td><td class=CDLDescription><a href="mxGeometry-php.html#mxGeometry" class=LClass id=link157 onMouseOver="ShowTip(event, 'tt47', 'link157')" onMouseOut="HideTip('tt47')">mxGeometry</a> that defines the new geometry.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getStyle"></a>getStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getStyle(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the style of the given <a href="mxCell-php.html#mxCell" class=LClass id=link158 onMouseOver="ShowTip(event, 'tt14', 'link158')" onMouseOut="HideTip('tt14')">mxCell</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link159 onMouseOver="ShowTip(event, 'tt14', 'link159')" onMouseOut="HideTip('tt14')">mxCell</a> whose style should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setStyle"></a>setStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setStyle(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$style</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the style of the given <a href="mxCell-php.html#mxCell" class=LClass id=link160 onMouseOver="ShowTip(event, 'tt14', 'link160')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxStyleChange&gt; and adds the change to the current transaction.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link161 onMouseOver="ShowTip(event, 'tt14', 'link161')" onMouseOut="HideTip('tt14')">mxCell</a> whose style should be changed.</td></tr><tr><td class=CDLEntry>style</td><td class=CDLDescription>String of the form stylename[;key=value] to specify the new cell style.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.isCollapsed"></a>isCollapsed</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isCollapsed(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <a href="mxCell-php.html#mxCell" class=LClass id=link162 onMouseOver="ShowTip(event, 'tt14', 'link162')" onMouseOut="HideTip('tt14')">mxCell</a> is collapsed.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link163 onMouseOver="ShowTip(event, 'tt14', 'link163')" onMouseOut="HideTip('tt14')">mxCell</a> whose collapsed state should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setCollapsed"></a>setCollapsed</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setCollapsed(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$isCollapsed</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the collapsed state of the given <a href="mxCell-php.html#mxCell" class=LClass id=link164 onMouseOver="ShowTip(event, 'tt14', 'link164')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxCollapseChange&gt; and adds the change to the current transaction.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link165 onMouseOver="ShowTip(event, 'tt14', 'link165')" onMouseOut="HideTip('tt14')">mxCell</a> whose collapsed state should be changed.</td></tr><tr><td class=CDLEntry>collapsed</td><td class=CDLDescription>Boolean that specifies the new collpased state.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.isVisible"></a>isVisible</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isVisible(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <a href="mxCell-php.html#mxCell" class=LClass id=link166 onMouseOver="ShowTip(event, 'tt14', 'link166')" onMouseOut="HideTip('tt14')">mxCell</a> is visible.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link167 onMouseOver="ShowTip(event, 'tt14', 'link167')" onMouseOut="HideTip('tt14')">mxCell</a> whose visible state should be returned.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.setVisible"></a>setVisible</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setVisible(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$visible</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the visible state of the given <a href="mxCell-php.html#mxCell" class=LClass id=link168 onMouseOver="ShowTip(event, 'tt14', 'link168')" onMouseOut="HideTip('tt14')">mxCell</a> using &lt;mxVisibleChange&gt; and adds the change to the current transaction.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link169 onMouseOver="ShowTip(event, 'tt14', 'link169')" onMouseOut="HideTip('tt14')">mxCell</a> whose visible state should be changed.</td></tr><tr><td class=CDLEntry>visible</td><td class=CDLDescription>Boolean that specifies the new visible state.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.mergeChildren"></a>mergeChildren</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function mergeChildren(</td><td class="PParameter  prettyprint " nowrap>$from,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$to,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cloneAllEdges</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> true</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Merges the children of the given cell into the given target cell inside this model.&nbsp; All cells are cloned unless there is a corresponding cell in the model with the same id, in which case the source cell is ignored and all edges are connected to the corresponding cell in this model.&nbsp; Edges are considered to have no identity and are always cloned unless the cloneAllEdges flag is set to false, in which case edges with the same id in the target model are reconnected to reflect the terminals of the source edges.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.mergeChildrenImpl"></a>mergeChildrenImpl</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function mergeChildrenImpl(</td><td class="PParameter  prettyprint " nowrap>$from,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$to,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cloneAllEdges,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$mapping</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Clones the children of the source cell into the given target cell in this model and adds an entry to the mapping that maps from the source cell to the target cell with the same id or the clone of the source cell that was inserted into this model.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.beginUpdate"></a>beginUpdate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function beginUpdate()</td></tr></table></blockquote><p>Increments the <a href="#mxGraphModel.updateLevel" class=LVariable id=link170 onMouseOver="ShowTip(event, 'tt6', 'link170')" onMouseOut="HideTip('tt6')">updateLevel</a> by one.&nbsp; The event notification is queued until <a href="#mxGraphModel.updateLevel" class=LVariable id=link171 onMouseOver="ShowTip(event, 'tt6', 'link171')" onMouseOut="HideTip('tt6')">updateLevel</a> reaches 0 by use of <a href="#mxGraphModel.endUpdate" class=LFunction id=link172 onMouseOver="ShowTip(event, 'tt58', 'link172')" onMouseOut="HideTip('tt58')">endUpdate</a>.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.endUpdate"></a>endUpdate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function endUpdate()</td></tr></table></blockquote><p>Decrements the <a href="#mxGraphModel.updateLevel" class=LVariable id=link173 onMouseOver="ShowTip(event, 'tt6', 'link173')" onMouseOut="HideTip('tt6')">updateLevel</a> by one and fires a notification event if the <a href="#mxGraphModel.updateLevel" class=LVariable id=link174 onMouseOver="ShowTip(event, 'tt6', 'link174')" onMouseOut="HideTip('tt6')">updateLevel</a> reaches 0.&nbsp; This function indirectly fires a notification.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphModel.getDirectedEdgeCount"></a>getDirectedEdgeCount</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getDirectedEdgeCount(</td><td class="PParameter  prettyprint " nowrap>$cell,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$outgoing,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$ignoredEdge</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of incoming or outgoing edges, ignoring the given edge.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link175 onMouseOver="ShowTip(event, 'tt14', 'link175')" onMouseOut="HideTip('tt14')">mxCell</a> whose edge count should be returned.</td></tr><tr><td class=CDLEntry>outgoing</td><td class=CDLDescription>Boolean that specifies if the number of outgoing or incoming edges should be returned.</td></tr><tr><td class=CDLEntry>ignoredEdge</td><td class=CDLDescription><a href="mxCell-php.html#mxCell" class=LClass id=link176 onMouseOver="ShowTip(event, 'tt14', 'link176')" onMouseOut="HideTip('tt14')">mxCell</a> that represents an edge to be ignored.</td></tr></table></div></div></div>

</div><!--Content-->


<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->


<div id=Menu><div class=MEntry><div class=MFile><a href="../index-txt.html">API Specification</a></div></div><div class=MEntry><div class=MFile><a href="../canvas/mxGdCanvas-php.html">canvas/<wbr>mxGdCanvas.php</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Io</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../io/mxCellCodec-php.html">mxCellCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodec-php.html">mxCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodecRegistry-php.html">mxCodecRegistry</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxModelCodec-php.html">mxModelCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxObjectCodec-php.html">mxObjectCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxStylesheetCodec-php.html">mxStylesheetCodec</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Model</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="mxCell-php.html">mxCell</a></div></div><div class=MEntry><div class=MFile><a href="mxCellPath-php.html">mxCellPath</a></div></div><div class=MEntry><div class=MFile><a href="mxGeometry-php.html">mxGeometry</a></div></div><div class=MEntry><div class=MFile id=MSelected>mxGraphModel</div></div></div></div></div><div class=MEntry><div class=MFile><a href="../reader/mxGraphViewHtmlReader-php.html">mxGraphViewHtmlReader</a></div></div><div class=MEntry><div class=MFile><a href="../reader/mxGraphViewImageReader-php.html">mxGraphViewImageReader</a></div></div><div class=MEntry><div class=MFile><a href="../canvas/mxHtmlCanvas-php.html">mxHtmlCanvas</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Util</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../util/mxConstants-php.html">mxConstants</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxEvent-php.html">mxEvent</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxEventObject-php.html">mxEventObject</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxEventSource-php.html">mxEventSource</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxImageBundle-php.html">mxImageBundle</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxLog-php.html">mxLog</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxPoint-php.html">mxPoint</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxRectangle-php.html">mxRectangle</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxUtils-php.html">mxUtils</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">View</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../view/mxCellState-php.html">mxCellState</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxConnectionConstraint-php.html">mxConnectionConstraint</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxEdgeStyle-php.html">mxEdgeStyleFunction</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxGraph-php.html">mxGraph</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxGraphView-php.html">mxGraphView</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxPerimeter-php.html">mxPerimeterFunction</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxStyleRegistry-php.html">mxStyleRegistry</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxStylesheet-php.html">mxStylesheet</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Index</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Interfaces.html">Interfaces</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Variables.html">Variables</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Interfaces">Interfaces</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
HideAllBut([2, 3, 1], 6);// --></script></div><!--Menu-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $root</td></tr></table></blockquote>Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. </div></div><div class=CToolTip id="tt2"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $cells</td></tr></table></blockquote>Maps from Ids to cells.</div></div><div class=CToolTip id="tt3"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $maintainEdgeParent</td></tr></table></blockquote>Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. </div></div><div class=CToolTip id="tt4"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $createIds</td></tr></table></blockquote>Specifies if the model should automatically create Ids for new cells. </div></div><div class=CToolTip id="tt5"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $nextId</td></tr></table></blockquote>Specifies the next Id to be created. </div></div><div class=CToolTip id="tt6"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">var $updateLevel</td></tr></table></blockquote>Counter for the depth of nested transactions. </div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function mxGraphModel(</td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new graph model using the specified root cell.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function clear()</td></tr></table></blockquote>Sets a new root using createRoot.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function createRoot()</td></tr></table></blockquote>Creates a new root cell with a default layer (child 0).</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function getCells()</td></tr></table></blockquote>Returns the internal lookup table that is used to map from Ids to cells.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function getRoot()</td></tr></table></blockquote>Returns the root of the model.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setRoot(</td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the root of the model using mxRootChange and adds the change to the current transaction. </div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cloneCell(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a deep clone of the given mxCell (including the children) which is created using cloneCells.</div></div><div class=CToolTip id="tt14"><div class=CClass>Cells are the elements of the graph model. </div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cloneCells(</td><td class="PParameter  prettyprint " nowrap>$cells,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$includeChildren</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%>true</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns an array of clones for the given array of mxCells. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cloneCellImpl(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$mapping,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$includeChildren</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner helper method for cloning cells recursively.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cellCloned(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Hook for cloning the cell. </div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function restoreClone(</td><td class="PParameter  prettyprint " nowrap>$clne,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$mapping</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner helper method for restoring the connections in a network of cloned cells.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isAncestor(</td><td class="PParameter  prettyprint " nowrap>$parent,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$child</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given parent is an ancestor of the given child.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function contains(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the model contains the given mxCell.</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getParent(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the parent of the given cell.</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function add(</td><td class="PParameter  prettyprint " nowrap>$parent,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$child,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$index</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Adds the specified child to the parent at the given index using mxChildChange and adds the change to the current transaction. </div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cellAdded(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner callback to update cells when a cell has been added. </div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function createId(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Hook method to create an Id for the specified cell. </div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function updateEdgeParents(</td><td class="PParameter  prettyprint " nowrap>$cell,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Updates the parent for all edges that are connected to cell or one of its descendants using updateEdgeParent.</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function updateEdgeParent(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$root</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner callback to update the parent of the specified mxCell to the nearest-common-ancestor of its two terminals.</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getOrigin(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the absolute, cummulated origin for the children inside the given parent as an mxPoint.</div></div><div class=CToolTip id="tt28"><div class=CClass>Implements a 2-dimensional point with double precision coordinates.</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getNearestCommonAncestor(</td><td class="PParameter  prettyprint " nowrap>$cell1,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cell2</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the nearest common ancestor for the specified cells.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function remove(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Removes the specified cell from the model using mxChildChange and adds the change to the current transaction. </div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function cellRemoved(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Inner callback to update cells when a cell has been removed.</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getChildCount(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the number of children in the given cell.</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getChildAt(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$index</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the child of the given mxCell at the given index.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getTerminal(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cource</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the source or target mxCell of the given edge depending on the value of the boolean parameter.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setTerminal(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$terminal,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$source</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the source or target terminal of the given mxCell using mxTerminalChange and adds the change to the current transaction. </div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setTerminals(</td><td class="PParameter  prettyprint " nowrap>$edge,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$source,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$target</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the source and target mxCell of the given mxCell in a single transaction using setTerminal for each end of the edge.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getEdgeCount(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the number of distinct edges connected to the given cell.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getEdgeAt(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$index</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the edge of cell at the given index.</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getEdges(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns all distinct edges connected to this cell as an array of mxCells. </div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isVertex(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given cell is a vertex.</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isEdge(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given cell is an edge.</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isConnectable(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given mxCell is connectable. </div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getValue(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the user object of the given mxCell using mxCell.getValue.</div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function getValue()</td></tr></table></blockquote>Returns the user object of the cell. </div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setValue(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$value</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the user object of then given mxCell using mxValueChange and adds the change to the current transaction.</div></div><div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getGeometry(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the mxGeometry of the given mxCell.</div></div><div class=CToolTip id="tt47"><div class=CClass>Represents the geometry of a cell. </div></div><div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setGeometry(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$geometry</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the mxGeometry of the given mxCell. </div></div><div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getStyle(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the style of the given mxCell.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setStyle(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$style</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the style of the given mxCell using mxStyleChange and adds the change to the current transaction.</div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isCollapsed(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given mxCell is collapsed.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setCollapsed(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$isCollapsed</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the collapsed state of the given mxCell using mxCollapseChange and adds the change to the current transaction.</div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function isVisible(</td><td class="PParameter  prettyprint " nowrap>$cell</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given mxCell is visible.</div></div><div class=CToolTip id="tt54"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function setVisible(</td><td class="PParameter  prettyprint " nowrap>$cell,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$visible</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the visible state of the given mxCell using mxVisibleChange and adds the change to the current transaction.</div></div><div class=CToolTip id="tt55"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function mergeChildren(</td><td class="PParameter  prettyprint " nowrap>$from,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$to,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cloneAllEdges</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> true</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Merges the children of the given cell into the given target cell inside this model. </div></div><div class=CToolTip id="tt56"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function mergeChildrenImpl(</td><td class="PParameter  prettyprint " nowrap>$from,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$to,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$cloneAllEdges,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$mapping</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Clones the children of the source cell into the given target cell in this model and adds an entry to the mapping that maps from the source cell to the target cell with the same id or the clone of the source cell that was inserted into this model.</div></div><div class=CToolTip id="tt57"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function beginUpdate()</td></tr></table></blockquote>Increments the updateLevel by one. </div></div><div class=CToolTip id="tt58"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function endUpdate()</td></tr></table></blockquote>Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0. </div></div><div class=CToolTip id="tt59"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>function getDirectedEdgeCount(</td><td class="PParameter  prettyprint " nowrap>$cell,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$outgoing,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>$ignoredEdge</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> null</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the number of incoming or outgoing edges, ignoring the given edge.</div></div><div class=CToolTip id="tt60"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function isConnectable()</td></tr></table></blockquote>Returns true if the cell is connectable.</div></div><!--END_ND_TOOLTIPS-->




<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>


<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>